 #define  _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<stdio.h>
using namespace std;

int main()
{
	int a = -2;
	int b = 3;
	printf("%d", a % b);
}